package cn.zwx.goods.svc.rpc.dto;

import lombok.Data;
import org.apache.dubbo.apidocs.annotations.RequestParam;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author zhangwenxue
 */
@Data
public class SpuPageListDTO{


    @NotNull(message = "每页展示条数不能为空")
    @RequestParam(value = "0",description = "每页展示条数",required = true)
    private Integer pageSize;

    @NotNull(message = "当前页数不能为空")
    @RequestParam(value = "0",description = "当前页数",required = true)
    private Integer pageNum;

    @RequestParam(value = "商品名称",description = "商品名称")
    @Length(max = 32,message = "商品名称不能超过32位")
    private String spuName;
    /**
     * 货号
     */
    @RequestParam(value = "货号",description = "货号")
    @Length(max = 32,message = "货号不能超过32位")
    private String spuCode;

    /**
     * 是否新品 1-不是 2-是
     */
    @RequestParam(value = "是否新品 1-不是 2-是",description = "是否新品 1-不是 2-是")
    private Integer newStatus;

    /**
     * 是否推荐 1-不是 2-是
     */
    @RequestParam(value = "是否推荐 1-不是 2-是",description = "是否推荐 1-不是 2-是")
    private Integer recommendStatus;

    /**
     * 品牌ID
     */
    @RequestParam(value = "品牌ID",description = "品牌ID")
    private Integer brandId;

    /**
     * 分类id
     */
    @RequestParam(value = "分类id",description = "分类id")
    private Integer categoryId;


    /**
     * 审核状态，1：未审核，2：已审核，3：审核不通过
     */
    @RequestParam(value = "审核状态，1：未审核，2：已审核，3：审核不通过",description = "审核状态，1：未审核，2：已审核，3：审核不通过")
    private Integer status;


    @RequestParam(value = "开始时间",description = "yyyy-MM-DD格式")
    private String startTime;

    @RequestParam(value = "结束时间",description = "yyyy-MM-DD格式")
    private String endTime;
}
